import 'package:flutter/material.dart';

class Contacts extends StatefulWidget{


  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    return _Contacts();
  }

}

class _Contacts extends State<Contacts>{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Text("afdss");
//    return new RefreshIndicator(
//      child: ListView.builder(
////        itemCount: items.length + 1,
//        itemCount: 11,
//        itemBuilder: (context, index) {
//          return Text("$index");
////          if (index == 0 && index != items.length) {
////            if(widget.headerView is Function){
////              return widget.headerView();
////            }else {
////              return Container(height: 0);
////            }
////          }
////          if (index == items.length) {
////            //return _buildLoadText();
////            return _buildProgressIndicator();
////          } else {
////            //print('itemsitemsitemsitems:${items[index].title}');
////            //return ListTile(title: Text("Index${index}:${items[index].title}"));
////            if (widget.renderItem is Function) {
////              return widget.renderItem(index, items[index]);
////            }
////          }
//        },
////        controller: _scrollController,
//      ),
//      onRefresh: _handleRefresh,
//    );
  }
  Future<Null> _handleRefresh() async {
//    List newEntries = await mokeHttpRequest();
    if (this.mounted) {
      setState(() {
//        items.clear();
//        items.addAll(newEntries);
//        isLoading = false;
//        _hasMore = true;
        return null;
      });
    }
  }
}